package org.entity;

import lombok.Data;

import java.util.Date;

@Data
public class User {
    private int id ;
    private String name;
    private String pass;
    private String sex ;
    private int age ;
    private Date regTime ;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public User(){}

    public User(int id, String name, String pass, String sex, int age, Date regTime) {
        this.id = id;
        this.name = name;
        this.pass = pass;
        this.sex = sex;
        this.age = age;
        this.regTime = regTime;
    }
}
